home *** CD-ROM | disk | FTP | other *** search
/ GameStar 2004 April / Gamestar_61_2004-04_dvdb.iso / DVDStar / Editace / hltp.exe / {app} / Source Code / CZBindMaker / CZSplash.cs < prev    next >
Text File  |  2003-11-29  |  7KB  |  204 lines

  1. /* 
  2.  * CZ Bind Maker
  3.  * 
  4.  * By: Steven Whitley (aka [CZ] Qw4z0)
  5.  * 
  6.  * CZ Bind Maker is a key Bind utility for Counter-Strike 1.6
  7.  * and is distributed under the GNU Public License.
  8.  * 
  9.  * This program is free software; you can redistribute it and/or
  10.  * modify it under the terms of the GNU General Public License
  11.  * as published by the Free Software Foundation; either version 2
  12.  * of the License, or (at your option) any later version.
  13.  * 
  14.  * This program is distributed in the hope that it will be useful,
  15.  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  16.  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  17.  * GNU General Public License for more details. 
  18.  * 
  19.  * You should have received a copy of the GNU General Public License
  20.  * along with this program; if not, write to the Free Software
  21.  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
  22.  * 
  23.  * If you need further support for this program you may visit
  24.  * http://www.bindmaker.org/ and post in the forums for help.
  25.  * 
  26.  *  
  27.  * Any Changes or modifications of this source may be submitted for inclusion
  28.  * in the official release of CZ Bind Maker to Steve Whitley at support@bindmaker.org.
  29.  *  
  30.  * Be sure to comment your code as follows:
  31.  * 
  32.  * // [ AUTHOR ] [ DATE ] 
  33.  * // [ DESCRIPTION OF THE CHANGE OR ADDITION ]
  34.  * 
  35.  * */
  36.  
  37. /* ###############################################
  38.  * #          Sand Bar Library License           #
  39.  * ###############################################
  40.  * 
  41.  * This release of SandBar is available at no charge for you to use in your freeware products 
  42.  * royalty-free. This license does not allow distribution of SandBar with software that is
  43.  * sold or generates income in any way. Use of this release is subject to my name being
  44.  * displayed as a credit in the About dialog in your application. If this is unacceptable you
  45.  * will need to purchase the commercial license.
  46.  * 
  47.  * When distributing this product with software where the source code is available (under
  48.  * GPL or other similar licenses) you are required to distribute this license file with the
  49.  * binary. This is to ensure other developers understand fully the terms of this release.
  50.  * 
  51.  * By using, downloading or posessing this product you agree not to attempt to decompile or
  52.  * reverse engineer it in any way. Enjoy!
  53.  * 
  54.  * Tim Dawson
  55.  * http://www.divil.co.uk/net/
  56.  * 
  57.  * */
  58.  
  59. using System;
  60. using System.Drawing;
  61. using System.Collections;
  62. using System.ComponentModel;
  63. using System.Windows.Forms;
  64.  
  65. namespace CZBindMaker
  66. {
  67.     /// <summary>
  68.     /// Summary description for CZSplash.
  69.     /// </summary>
  70.     public class CZSplash : System.Windows.Forms.Form
  71.     {
  72.         private System.Windows.Forms.Label by;
  73.         private System.Windows.Forms.Label label2;
  74.         public System.Windows.Forms.Label m_action;
  75.         private System.Windows.Forms.Label version;
  76.         private System.Windows.Forms.ProgressBar progressBar1;
  77.         /// <summary>
  78.         /// Required designer variable.
  79.         /// </summary>
  80.         private System.ComponentModel.Container components = null;
  81.  
  82.         public CZSplash()
  83.         {
  84.             InitializeComponent();
  85.             this.version.Text = "Version "+CZBindMaker.CZBindMakerMainForm.applicationVersion;
  86.         }
  87.  
  88.         /// <summary>
  89.         /// Clean up any resources being used.
  90.         /// </summary>
  91.         protected override void Dispose( bool disposing )
  92.         {
  93.             if( disposing )
  94.             {
  95.                 if(components != null)
  96.                 {
  97.                     components.Dispose();
  98.                 }
  99.             }
  100.             base.Dispose( disposing );
  101.         }
  102.  
  103.         #region Windows Form Designer generated code
  104.         /// <summary>
  105.         /// Required method for Designer support - do not modify
  106.         /// the contents of this method with the code editor.
  107.         /// </summary>
  108.         private void InitializeComponent()
  109.         {
  110.             System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(CZSplash));
  111.             this.by = new System.Windows.Forms.Label();
  112.             this.version = new System.Windows.Forms.Label();
  113.             this.label2 = new System.Windows.Forms.Label();
  114.             this.m_action = new System.Windows.Forms.Label();
  115.             this.progressBar1 = new System.Windows.Forms.ProgressBar();
  116.             this.SuspendLayout();
  117.             // 
  118.             // by
  119.             // 
  120.             this.by.BackColor = System.Drawing.Color.Transparent;
  121.             this.by.ForeColor = System.Drawing.Color.White;
  122.             this.by.Location = new System.Drawing.Point(200, 164);
  123.             this.by.Name = "by";
  124.             this.by.Size = new System.Drawing.Size(120, 16);
  125.             this.by.TabIndex = 0;
  126.             this.by.Text = "⌐ 2003 Steven Whitley";
  127.             this.by.TextAlign = System.Drawing.ContentAlignment.TopCenter;
  128.             // 
  129.             // version
  130.             // 
  131.             this.version.BackColor = System.Drawing.Color.Transparent;
  132.             this.version.ForeColor = System.Drawing.Color.White;
  133.             this.version.Location = new System.Drawing.Point(16, 136);
  134.             this.version.Name = "version";
  135.             this.version.Size = new System.Drawing.Size(496, 16);
  136.             this.version.TabIndex = 1;
  137.             this.version.Text = "Version Information";
  138.             this.version.TextAlign = System.Drawing.ContentAlignment.TopCenter;
  139.             // 
  140.             // label2
  141.             // 
  142.             this.label2.BackColor = System.Drawing.Color.Transparent;
  143.             this.label2.Font = new System.Drawing.Font("Microsoft Sans Serif", 8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
  144.             this.label2.ForeColor = System.Drawing.Color.Gainsboro;
  145.             this.label2.Location = new System.Drawing.Point(164, 192);
  146.             this.label2.Name = "label2";
  147.             this.label2.Size = new System.Drawing.Size(200, 16);
  148.             this.label2.TabIndex = 2;
  149.             this.label2.Text = "Splash Screen By Casey York ⌐ 2003";
  150.             this.label2.TextAlign = System.Drawing.ContentAlignment.TopCenter;
  151.             // 
  152.             // m_action
  153.             // 
  154.             this.m_action.BackColor = System.Drawing.Color.Transparent;
  155.             this.m_action.ForeColor = System.Drawing.Color.White;
  156.             this.m_action.Location = new System.Drawing.Point(144, 56);
  157.             this.m_action.Name = "m_action";
  158.             this.m_action.Size = new System.Drawing.Size(240, 16);
  159.             this.m_action.TabIndex = 3;
  160.             this.m_action.TextAlign = System.Drawing.ContentAlignment.TopCenter;
  161.             // 
  162.             // progressBar1
  163.             // 
  164.             this.progressBar1.Location = new System.Drawing.Point(200, 72);
  165.             this.progressBar1.Name = "progressBar1";
  166.             this.progressBar1.Size = new System.Drawing.Size(126, 10);
  167.             this.progressBar1.Step = 34;
  168.             this.progressBar1.TabIndex = 4;
  169.             // 
  170.             // CZSplash
  171.             // 
  172.             this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
  173.             this.BackColor = System.Drawing.SystemColors.Control;
  174.             this.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("$this.BackgroundImage")));
  175.             this.ClientSize = new System.Drawing.Size(528, 224);
  176.             this.Controls.Add(this.m_action);
  177.             this.Controls.Add(this.progressBar1);
  178.             this.Controls.Add(this.label2);
  179.             this.Controls.Add(this.version);
  180.             this.Controls.Add(this.by);
  181.             this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
  182.             this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
  183.             this.Name = "CZSplash";
  184.             this.ShowInTaskbar = false;
  185.             this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
  186.             this.Text = "CZ Bind Maker";
  187.             this.TopMost = true;
  188.             this.ResumeLayout(false);
  189.  
  190.         }
  191.         #endregion
  192.  
  193.         public string Action
  194.         {
  195.             set
  196.             {
  197.                 this.m_action.Text = value;
  198.                 this.progressBar1.PerformStep();
  199.                 this.Refresh();
  200.             }
  201.         }
  202.     }
  203. }
  204.